﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TheHeGeoManager
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            ucRestoreData1.StartThread();
            ucWarning1.WarningRun();
        }

        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            foreach (var process in Process.GetProcessesByName("TheHeGeoManager.exe"))
            {
                process.Kill();
            }
        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
            Environment.Exit(0);
        }
    }
}
